package cn.线程安全;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/7/26 16:52
 */
public class Main2 {
    public static void main(String[] args) {
        SaveWindow2 s = new SaveWindow2();

        Thread t = new Thread(s);
        Thread t2 = new Thread(s);
        t.setName("线程A");
        t2.setName("线程B");

        t.start();
        t2.start();
    }
}
